/**
 * @properties={typeid:24,uuid:"FB777833-64FD-429D-860C-EBDE6136B149"}
 * @AllowToRunInFind
 */
function buscar_proyeccion() 
{ 
	//Buscar Rango de Fechas pedido //////////////////////////////
	foundset.find()
	var d1 = globals.gFechaDesde
	d1.setHours(00);
	d1.setMinutes(00);
	d1.setSeconds(00);             
	var df1 = utils.dateFormat(d1, 'dd-MM-yyyy HH:mm:ss')
	var d2 = globals.gFechaHasta
	d2.setHours(23);
	d2.setMinutes(59);
	d2.setSeconds(59);
	var df2 = utils.dateFormat(d2, 'dd-MM-yyyy HH:mm:ss')
	foundset.fecha_mov=df1+'...' + df2+'|dd-MM-yyyy HH:mm:ss'  
	foundset.saldo = '> 0'
	foundset.ctacte_cl_to_tab_mov_cl.d_h=1
	var found = foundset.search();
	if (found != 0)
	{
		foundset.sort('fecha_vto_text asc')
	}
	else
	{
		globals.gsaldo_aux=0.000
		globals.DIALOGS.showWarningDialog('Aviso',"No hay movimientos de ctacte. para el rango solicitado",'OK');
	}
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"8D5E10DD-DD6B-4A2D-B8F9-AC872B0791BF"}
 */
function imprimir(event) 
{
	controller.showPrintPreview()
}
